<ul class="list-unstyled">
  <li ng-repeat="user in users">
    <button class="btn" ng-click="selectUser(user)" ng-class="{'btn-success':user === selectedUser,'btn-primary':user !== selectedUser}">{{user.name}}</button>
  </li>
</ul>
